//
//  PulldownMenu.h
//  NemoOfficeClient
//
//  Created by 杨旭东 on 26/04/2017.
//  Copyright © 2017 ainemo. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface MenuDataItem : NSObject

@property (nonatomic, assign) int tag;

@property (nonatomic, copy) NSString *title;

@property (nonatomic, copy) NSString *imageName;

@property (nonatomic, assign) BOOL canResponse;

+ (NSArray *)shareItems:(NSArray *)items;

+ (NSArray *)moreItems:(NSArray *)items;

@end



@interface MenuCell : UITableViewCell

+ (MenuCell *)menuCellWithTableview:(UITableView *)tableview last:(BOOL)last dataItem:(MenuDataItem *)item;

@property (nonatomic, strong) MenuDataItem *item;

@end



@interface PulldownMenu : UIView

+ (PulldownMenu *)pulldownMenuDataSource:(NSArray <MenuDataItem *>*)items
                                selected:(void (^)(NSInteger, MenuDataItem *))selected
                                 dismiss:(void (^)())dismiss;


@end
